﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UlsStudio.Engine.SqlParsers;

namespace UlsStudio.AppCore.Events
{
    public class QueryValidationResultEventArgs : EventArgs
    {

        public QueryValidationResultEventArgs(SimpleSqlSelectStatementInfo query, bool isValid)
        {
            this.Query = query;
            this.IsValid = isValid;
        }
        public QueryValidationResultEventArgs(SimpleSqlSelectStatementInfo query, bool isValid, string errorMessage)
            :this(query, isValid)
        {
            this.ErrorMessage = errorMessage;
        }

        public SimpleSqlSelectStatementInfo Query { get; set; }
        public string ErrorMessage { get; set; }
        public bool IsValid { get; set; }
    }
}
